/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.breeze.dom;

import ognl.Ognl;
import org.w3c.dom.Element;
import org.w3c.dom.Node;

/**
 *
 * @author huateng
 */
public class PropertyTag extends DefaultTag{
    
    public PropertyTag(Node n,Object r){
        super(n,r);
    }
    
    public PropertyTag(Node n){
        super(n);
    }

    public String display() {
       if(!( node instanceof Element))
           return "";
       Element e=(Element)node;
       String name=e.getAttribute("name");
       Object value=getValue(name);
       return (String)value;
    }

   
    
}
